<table class="bordered" width="770">
    <thead>
    <tr>
        <th>View Stock Sales and Entry Payments </th>
		<th>Page per Record: 10  </th>
    </tr>
    </thead>
</table>
<div id="dt_example">
	<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
        <thead>
        <tr>
            <th>Type</th>        
            <th>Date</th>
            <th>Customer</th>
            <th>Supplier</th>
            <th>Amount</th>
            <th>Payment</th>
        </tr>
        </thead>
        <tbody>
        	<?php 
				$sql = "SELECT * FROM tbl_owes";
				$result = mysql_query($sql);
				while ( $row = mysql_fetch_array($result)){
			?>
            <tr>
              <td><?php echo $row['type'] ?></td>
              <td><?php echo $row['date'] ?></td>
              <td><?php echo $row['cus_name'] ?></td>
              <td><?php echo $row['sup_name'] ?></td>
              <td><?php echo $row['amount'] ?></td>
              <td><?php echo $row['paid'] ?></td>
            </tr>
	<?php 
		}
	?>	
        </tbody>
   </table>
</div>